<?php
namespace app\common\model;

use think\Model;
class SscRizhijl extends Model
{
    protected function initialize()
    {
        parent::initialize();
    }
    /**
     * 查询登录日志记录
     * @param unknown $where
     * @param string $order
     */
    public function Rizhi($where,$order,$limit)
    {
          return SscRizhijl::name('rizhi_jl')->where($where)->order($order)->paginate($limit,false,['query'=>request()->param()]);

    }

    /**
     * 写入日志记录
     * @param unknown $where
     * @param string $order
     * @param $data[array 要写入的数组]
     * return boolean[true|false]
     */
    public function RizhiInsert($data = [])
    {
        return SscRizhijl::name('rizhi_jl')->insert($data);

    }



}